import request from '@/utils/request'

export function fetchList(params) {
  return request({
    url: '/back/lms/provider/page',
    method: 'get',
    params: params
  })
}

export function createBox(data) {
  return request({
    url: '/back/lms/provider/insert',
    method: 'post',
    data: data
  })
}

export function updateBox(id, data) {
  data.id = id
  return request({
    url: '/back/lms/provider/update',
    method: 'put',
    data: data
  })
}

export function deleteBox(id) {
  return request({
    url: '/back/lms/provider/delete/' + id,
    method: 'delete'
  })
}


